// Renders a vCard for hCard objects.  This script was derived from the Greasemonkey
// script at http://www.blogmatrix.com/include/microformat-find.user.js.
// version 2.0
// 2006-12-31
// Copyright (c) 2006, Calvin Yu
//
// --------------------------------------------------------------------
//
// This is a Tails script.
//
// To install, you need Tails: http://blog.codeeg.com/tails-firefox-extension/
// Then restart Firefox and revisit this script and click on 'Install'.
//
// To uninstall, go to Tools/Manage Tails Scripts...,
// select "Add to Address Book", and click Uninstall.
//
// --------------------------------------------------------------------
//
// ==TailsScript==
// @name          Add to Address Book
// @namespace     http://blog.codeeg.com/tails
// @description   Renders a vCard for hCard objects.
// @include       hcard
// ==/TailsScript==

getData: function() {
  return {fileName: 'contact.vcf', contents: this.object.toVCard()};
}